package managedbean.SCM.Batch;

import entity.SCM.Batch;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import session.stateless.SCM.BatchBeanLocal;

@ManagedBean(name="viewMaterialBatchManagerBean")
@ViewScoped
public class ViewMaterialBatchManagerBean implements Serializable {

    public ViewMaterialBatchManagerBean() {
    }
    
    @EJB
    private BatchBeanLocal batchBeanLocal;
    
    private Batch selectedMaterialBatch;

    public Batch getSelectedMaterialBatch() {
        return selectedMaterialBatch;
    }

    public void setSelectedMaterialBatch(Batch selectedMaterialBatch) {
        this.selectedMaterialBatch = selectedMaterialBatch;
    }
    
    public List<Batch> getMaterialBatch(){
        return batchBeanLocal.getMaterialBatch();
    }
    
}
